﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LEEAAttendanceControl.Web
{
    public class ConvertMinutesToHours
    {
        public static string Convert(string value)
        {
            if(!string.IsNullOrEmpty(value))
            {
                int minutes = int.Parse(value);
                return ((int)(minutes / 60)).ToString() + ":" + (minutes % 60).ToString();
            }
            else
            {
                return "0:0";
            }
        }
    }
}